package com.miyuan.wm.service;

import com.miyuan.wm.request.AddSuppliersRequestVo;
import com.miyuan.wm.request.QuerySuppliersRequestVo;
import com.miyuan.wm.request.UpdateSuppliersRequestVo;
import com.miyuan.wm.response.BaseResponse;
import com.miyuan.wm.response.PageResponse;
import com.miyuan.wm.response.QuerySupplierByIdResponseVo;
import com.miyuan.wm.response.QuerySuppliersResponseVo;

import java.util.List;

/**
 * @ClassName SupplierService
 * @Description 供应商管理接口
 */
public interface SupplierService {

    /**
     * @Description 查询供应商列表
     * @param:
     * @return:
     */
    PageResponse<List<QuerySuppliersResponseVo>> listSuppliers(QuerySuppliersRequestVo requestVo);

    /**
     * @Description 新增供应商信息
     * @param:
     * @return:
     */
    BaseResponse<Boolean> addSuppliers(AddSuppliersRequestVo requestVo);

    /**
     * @Description 修改供应商信息
     * @param:
     * @return:
     */
    BaseResponse<Boolean> updateSuppliers(UpdateSuppliersRequestVo requestVo);

    /**
     * @Description 删除供应商信息
     * @param:
     * @return:
     */
    BaseResponse<Boolean> deleteSuppliers(List<Integer> ids);

    /**
     * @Description 查询供应商信息，供下拉框使用
     * @param:
     * @return:
     */
    BaseResponse<List<QuerySuppliersResponseVo>> querySuppliersForSelect();

    /**
     * @Description 根据Id查询供应商信息
     * @param:
     * @return:
     */
    BaseResponse<QuerySupplierByIdResponseVo> querySupplierById(int id);

}
